'''
循环：
while
for
'''

# 用while打印1-10之间的数字
# 初始值
n = 1
# 结束条件
while n <= 10:
    print(n)
    n += 1

# 打印1-50之间能被3整除的数字
m = 1
while m <= 50:
    if m % 3 == 0:
        print('----->', m)
    m += 1

# 打印1-10之间数字的累加和
b = 1
sum = 0
while b <= 10:
    sum = b + sum
    b += 1
print(sum)


# 死循环和跳出死循环-break
count = 1
while True:
    print('1111')
    if count >= 5:
        break
    count += 1



